package problemSpace;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.ArrayList;

@XmlRootElement(name = "ConstructionYard")
public class ConstructionYard {
	@XmlElement(name = "ConstructionYardCode")
	public String constructionYardCode;
	@XmlElementWrapper(name = "StationDurations")
	@XmlElement(name = "StationDuration")
	public ArrayList<StationDuration> stDu;
	@XmlElement(name = "WaitingMinutes")
	public int waitingMinutes;

	public ConstructionYard() {
		this.constructionYardCode = "";
		this.stDu = new ArrayList<StationDuration>();
		this.waitingMinutes = -1;
	}

	public ConstructionYard(String constructionYardCode,
			ArrayList<StationDuration> stDu, int waitingMinutes) {
		this.constructionYardCode = constructionYardCode;
		this.stDu = stDu;
		this.waitingMinutes = waitingMinutes;
	}
}
